package com.youlai.boot.factory.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.Range;

/**
 * 服装分类表单对象
 *
 * @author youlaitech
 * @since 2025-08-16 00:26
 */
@Getter
@Setter
@Schema(description = "服装分类表单对象")
public class ClothingCategoryForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "分类ID")
    private Integer id;

    @Schema(description = "父节点ID")
    private Long parentId;

    @Schema(description = "父节点路径")
    @Size(max=255, message="父节点路径长度不能超过255个字符")
    private String treePath;

    @Schema(description = "分类名称")
    @Size(max=100, message="分类名称长度不能超过100个字符")
    private String name;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "显示状态(0:隐藏, 1:显示)")
    @Range(max = 1, min = 0, message = "显示状态不正确")
    private Integer visible;
}
